//
//  LFFactory.m
//  QingDaoCommunity
//
//  Created by 李学林 on 15/11/22.
//  Copyright © 2015年 teteTechnology. All rights reserved.
//

#import "LFFactory.h"

@implementation LFFactory


+ (UIButton *)type:(int)type WithFrame:(CGRect)frame WithTitle:(NSString*)title WithTarget:(id)target WithAction:(SEL)action{

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    
    button.frame = frame;
    [button setTitle:title forState:UIControlStateNormal];
    [button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    
    
    return button;



}

@end
